package com.lhh.springcloud.service;

import com.lhh.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 李洪豪
 * @Sno 20220301044
 */
@FeignClient(value = "seata-storage-micro-service")
@Service
public interface StorageService {
    @PostMapping("/storage/reduce")
    public Result updateStorage(@RequestParam(value = "product_id") Long product_id,
                                @RequestParam(value = "nums") Integer nums);
}
